Method AutoSyncSchemesAsync(IRedbService, params Assembly[])
Automatic synchronization of all schemes with RedbSchemeAttribute.
Scans specified assemblies (or all loaded) and synchronizes
all types marked with [RedbScheme] attribute.
Synchronization is performed in parallel for maximum performance.
Usage example:
Automatic synchronization of all schemes
await redb.AutoSyncSchemesAsync();
Synchronization only from specified assemblies
await redb.AutoSyncSchemesAsync(typeof(MyModel).Assembly);
[Obsolete("Use await redb.InitializeAsync() - method includes scheme synchronization")]
public static Task AutoSyncSchemesAsync(this IRedbService redb, params Assembly[] assemblies)